<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>

<head>
  <style>
    nav {
      background-color: #333;
      overflow: hidden;
      padding: 0;
    }

    nav a {
      float: left;
      color: white;
      text-align: center;
      padding: 14px 16px;
      text-decoration: none;
      position: relative;
    }

    nav a:hover {
      background-color: #ddd;
      color: black;
    }

    /* 图标样式（这里简单用字符模拟） */
    nav a::before {
      content: attr(data-icon);
      margin-right: 5px;
      font-size: 18px;
    }

    /* 下拉菜单样式 */
  .dropdown {
      position: relative;
      float: left;
    }

  .dropdown-content {
      display: none;
      position: absolute;
      background-color: #f9f9f9;
      min-width: 160px;
      box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
      z-index: 1;
    }

  .dropdown-content a {
      color: black;
      padding: 12px 16px;
      text-decoration: none;
      display: block;
    }

  .dropdown-content a:hover {
      background-color: #ddd;
    }

  .dropdown:hover.dropdown-content {
      display: block;
    }
  </style>
</head>

<body>

  <nav>
    <a href="#" data-icon="🏠">首页</a>
    <div class="dropdown">
      <a href="#" data-icon="📦">产品</a>
      <div class="dropdown-content">
        <a href="#">产品1</a>
        <a href="#">产品2</a>
        <a href="#">产品3</a>
      </div>
    </div>
    <div class=" dropdown">
      <a href="#" data-icon="🛠️">服务</a>
      <div class=" dropdown-content">
        <a href="#">服务1</a>
        <a href="#">服务2</a>
        <a href="#">服务3</a>
      </div>
    </div>
    <a href="#" data-icon="📄">关于我们</a>
    <a href="#" data-icon="📞">联系我们</a>
  </nav>

</body>

</html>